package com.lizy.order03.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;

import java.util.UUID;

    public class FeignAuthRequestInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate template) {
        //业务逻辑
        String access_token = UUID.randomUUID().toString();
        template.header("Authorization", access_token);
    }

}
